package com.guanyong.model;

/**
 * Created by mxk on 2017/9/19.
 */
public class KeyPlayCountModel implements Comparable<KeyPlayCountModel>{
    private  String baseId;
    private  String name;
    private  String curDate;
    private  Long qqCount=0l;
    private  Long iqiyiCount=0l;
    private  Long youkuCount=0l;
    private  int tab;

    public String getBaseId() {
        return baseId;
    }

    public void setBaseId(String baseId) {
        this.baseId = baseId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCurDate() {
        return curDate;
    }

    public void setCurDate(String curDate) {
        this.curDate = curDate;
    }

    public Long getQqCount() {
        return qqCount;
    }

    public void setQqCount(String qqCount) {
        if (qqCount==null){
            this.qqCount=0l;
        }else {
            this.qqCount = Long.valueOf(qqCount);
        }

    }

    public Long getIqiyiCount() {
        return iqiyiCount;
    }

    public void setIqiyiCount(String iqiyiCount) {
        if (iqiyiCount==null){
            this.qqCount=0l;
        }else {
            this.iqiyiCount = Long.valueOf(iqiyiCount);
        }
    }

    public Long getYoukuCount() {
        return youkuCount;
    }

    public void setYoukuCount(String youkuCount) {
        if (youkuCount==null){
            this.qqCount=0l;
        }else {
            this.youkuCount = Long.valueOf(youkuCount);
        }
    }

    public int getTab() {
        return tab;
    }

    public void setTab(int tab) {
        this.tab = tab;
    }

    public void setQqCount(Long qqCount) {
        this.qqCount = qqCount;
    }

    public void setIqiyiCount(Long iqiyiCount) {
        this.iqiyiCount = iqiyiCount;
    }

    public void setYoukuCount(Long youkuCount) {
        this.youkuCount = youkuCount;
    }

    @Override
    public int compareTo(KeyPlayCountModel o) {
        Long ol =o.getIqiyiCount()+o.getQqCount()+o.getYoukuCount();
        Long l =this.getIqiyiCount()+this.getQqCount()+this.getYoukuCount();
        return ol.compareTo(l);

    }
}
